const Constacts = [
  { name: 'res.partner', model: 'res.partner', title: '联系人' },
  { type: 'divider', title: '联系人标签' },
  {
    name: 'partner.category',
    model: 'res.partner.category',
    title: '联系人标签'
  },
  { type: 'divider' },
  { name: 'partner.title', model: 'res.partner.title', title: '联系人头衔' },
  { name: 'Banks', model: 'res.bank', title: '银行' },
  { name: 'BanksAcc', model: 'res.partner.bank', title: '银行账号' },
  { name: 'country', model: 'res.country', title: '国家地区' }
]

const Sales = [
  { name: 'ResPartnerCustomer', model: 'ResPartnerCustomer', title: '客户' },
  { name: 'ProductSale', model: 'ProductSale', title: '产品' },
  { type: 'divider', title: '' },
  { name: 'sale.order', model: 'sale.order', title: '销售订单' },
  // { type: 'todo', title: '' },
  { type: 'divider', title: '' },
  { name: 'product.category', model: 'product.category', title: '产品类别' }
]

const Purchase = [
  //
  { type: 'divider', title: '建设中' }
]

const Accounting = [
  //
  { type: 'divider', title: '建设中' }
]

const Hr = [
  //
  { name: 'hr.employee', model: 'hr.employee', title: '员工' },
  { name: 'hr.department', model: 'hr.department', title: '部门' },
  { name: 'hr.job', model: 'hr.job', title: '职位' }
  // { type: 'divider', title: '建设中' }
]

const menus = {
  contacts: { text: '联系人', icon: 'friends-o', children: Constacts },
  sales: { text: '销售', icon: 'shop-o', children: Sales },
  purchase: { text: '采购', icon: 'bag-o', children: Purchase },
  accounting: { text: '财务', icon: 'gold-coin-o', children: Accounting },
  hr: { text: '人力资源', icon: 'contact', children: Hr }
}

export default menus
